package motorcar;

public class Calculator {
	String name; //Æ·ÅÆ
    int price ;//¼Û¸ñ
    String color;//ÑÕÉ« 
	 public int ope(int Operator, int num1, int num2) {
	        switch (Operator) {
	        case 1:
	            num1 += num2;
	            break;
	        case 2:
	            num1 -= num2;
	            break;
	        case 3:
	            num1 *= num2;
	            break;
	        case 4:
	            num1 /= num2;
	            break;
	        default:
	            System.out.println("输入有误!重新输入:");
	            A06 A = new A06();
	            A.main(null);
	            break;
	        }
	        System.out.println("运算结果:" + num1);
	        return num1;
	    }
}